/*
'===============================================================================
'  .TgUserInfoEntity
'===============================================================================
*/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DaoHelper.Religion.Entity.Helper
{
	public class TgUserInfoField
	{
		public static Field Id { get { return new Field("Id", 0); } }
		public static Field UserName { get { return new Field("UserName", 50); } }
		public static Field Password { get { return new Field("Password", 50); } }
		public static Field Photo { get { return new Field("Photo", 512); } }
		public static Field FullName { get { return new Field("FullName", 50); } }
		public static Field AddressCurrent { get { return new Field("AddressCurrent", 1024); } }
		public static Field Birthday { get { return new Field("Birthday", 0); } }
		public static Field Generate { get { return new Field("Generate", 50); } }
		public static Field PhoneNumber { get { return new Field("PhoneNumber", 12); } }
		public static Field Info { get { return new Field("Info", 1024); } }
		public static Field CreatedDate { get { return new Field("CreatedDate", 0); } }
		public static Field CreatedBy { get { return new Field("CreatedBy", 50); } }
		public static Field UpdatedDate { get { return new Field("UpdatedDate", 0); } }
		public static Field UpdatedBy { get { return new Field("UpdatedBy", 50); } }
		public static Field IdAlbum { get { return new Field("IdAlbum", 0); } }
		
	}
}

namespace DaoHelper.Religion.Entity
{
	public class TgUserInfoEntity
	{
		/// <summary>
		/// Class TgUserInfo is generation
		/// </summary>
		
		public TgUserInfoEntity()
		{
			// Nothing for now.
		}
		
		private const string TableName = "tg_UserInfo";
		
		
		private const string _IdProperty = "@Name:Id@DataType:uniqueidentifier@IsKey:True@Length:0";
		private bool _IdIsDirty = false;
        private Guid _IdValue;
        public Guid Id
        {
            get { return _IdValue; }
            set
            {
                _IdValue = value;
                _IdIsDirty = true;
            }
        }
		
		private const string _UserNameProperty = "@Name:UserName@DataType:nvarchar(50)@IsKey:False@Length:50";
		private bool _UserNameIsDirty = false;
        private string _UserNameValue;
        public string UserName
        {
            get { return _UserNameValue; }
            set
            {
                _UserNameValue = value;
                _UserNameIsDirty = true;
            }
        }
		
		private const string _PasswordProperty = "@Name:Password@DataType:nvarchar(50)@IsKey:False@Length:50";
		private bool _PasswordIsDirty = false;
        private string _PasswordValue;
        public string Password
        {
            get { return _PasswordValue; }
            set
            {
                _PasswordValue = value;
                _PasswordIsDirty = true;
            }
        }
		
		private const string _PhotoProperty = "@Name:Photo@DataType:nvarchar(512)@IsKey:False@Length:512";
		private bool _PhotoIsDirty = false;
        private string _PhotoValue;
        public string Photo
        {
            get { return _PhotoValue; }
            set
            {
                _PhotoValue = value;
                _PhotoIsDirty = true;
            }
        }
		
		private const string _FullNameProperty = "@Name:FullName@DataType:nvarchar(50)@IsKey:False@Length:50";
		private bool _FullNameIsDirty = false;
        private string _FullNameValue;
        public string FullName
        {
            get { return _FullNameValue; }
            set
            {
                _FullNameValue = value;
                _FullNameIsDirty = true;
            }
        }
		
		private const string _AddressCurrentProperty = "@Name:AddressCurrent@DataType:nvarchar(1024)@IsKey:False@Length:1024";
		private bool _AddressCurrentIsDirty = false;
        private string _AddressCurrentValue;
        public string AddressCurrent
        {
            get { return _AddressCurrentValue; }
            set
            {
                _AddressCurrentValue = value;
                _AddressCurrentIsDirty = true;
            }
        }
		
		private const string _BirthdayProperty = "@Name:Birthday@DataType:datetime@IsKey:False@Length:0";
		private bool _BirthdayIsDirty = false;
        private DateTime _BirthdayValue;
        public DateTime Birthday
        {
            get { return _BirthdayValue; }
            set
            {
                _BirthdayValue = value;
                _BirthdayIsDirty = true;
            }
        }
		
		private const string _GenerateProperty = "@Name:Generate@DataType:nvarchar(50)@IsKey:False@Length:50";
		private bool _GenerateIsDirty = false;
        private string _GenerateValue;
        public string Generate
        {
            get { return _GenerateValue; }
            set
            {
                _GenerateValue = value;
                _GenerateIsDirty = true;
            }
        }
		
		private const string _PhoneNumberProperty = "@Name:PhoneNumber@DataType:nchar(12)@IsKey:False@Length:12";
		private bool _PhoneNumberIsDirty = false;
        private string _PhoneNumberValue;
        public string PhoneNumber
        {
            get { return _PhoneNumberValue; }
            set
            {
                _PhoneNumberValue = value;
                _PhoneNumberIsDirty = true;
            }
        }
		
		private const string _InfoProperty = "@Name:Info@DataType:nvarchar(1024)@IsKey:False@Length:1024";
		private bool _InfoIsDirty = false;
        private string _InfoValue;
        public string Info
        {
            get { return _InfoValue; }
            set
            {
                _InfoValue = value;
                _InfoIsDirty = true;
            }
        }
		
		private const string _CreatedDateProperty = "@Name:CreatedDate@DataType:datetime@IsKey:False@Length:0";
		private bool _CreatedDateIsDirty = false;
        private DateTime _CreatedDateValue;
        public DateTime CreatedDate
        {
            get { return _CreatedDateValue; }
            set
            {
                _CreatedDateValue = value;
                _CreatedDateIsDirty = true;
            }
        }
		
		private const string _CreatedByProperty = "@Name:CreatedBy@DataType:nvarchar(50)@IsKey:False@Length:50";
		private bool _CreatedByIsDirty = false;
        private string _CreatedByValue;
        public string CreatedBy
        {
            get { return _CreatedByValue; }
            set
            {
                _CreatedByValue = value;
                _CreatedByIsDirty = true;
            }
        }
		
		private const string _UpdatedDateProperty = "@Name:UpdatedDate@DataType:datetime@IsKey:False@Length:0";
		private bool _UpdatedDateIsDirty = false;
        private DateTime _UpdatedDateValue;
        public DateTime UpdatedDate
        {
            get { return _UpdatedDateValue; }
            set
            {
                _UpdatedDateValue = value;
                _UpdatedDateIsDirty = true;
            }
        }
		
		private const string _UpdatedByProperty = "@Name:UpdatedBy@DataType:nvarchar(50)@IsKey:False@Length:50";
		private bool _UpdatedByIsDirty = false;
        private string _UpdatedByValue;
        public string UpdatedBy
        {
            get { return _UpdatedByValue; }
            set
            {
                _UpdatedByValue = value;
                _UpdatedByIsDirty = true;
            }
        }
		
		private const string _IdAlbumProperty = "@Name:IdAlbum@DataType:uniqueidentifier@IsKey:False@Length:0";
		private bool _IdAlbumIsDirty = false;
        private Guid _IdAlbumValue;
        public Guid IdAlbum
        {
            get { return _IdAlbumValue; }
            set
            {
                _IdAlbumValue = value;
                _IdAlbumIsDirty = true;
            }
        }
		
		
		public void ResetDirty()
        {
			_IdIsDirty = false;
			_UserNameIsDirty = false;
			_PasswordIsDirty = false;
			_PhotoIsDirty = false;
			_FullNameIsDirty = false;
			_AddressCurrentIsDirty = false;
			_BirthdayIsDirty = false;
			_GenerateIsDirty = false;
			_PhoneNumberIsDirty = false;
			_InfoIsDirty = false;
			_CreatedDateIsDirty = false;
			_CreatedByIsDirty = false;
			_UpdatedDateIsDirty = false;
			_UpdatedByIsDirty = false;
			_IdAlbumIsDirty = false;
		
		}
	}
}
